const {DataTypes} = require('sequelize')
const seq = require('../db/seq')
const Goods = seq.define('zd_goods', {
    goods_name: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: "商品名称"
    },
    goods_price: {
        type: DataTypes.DECIMAL(10,2),
        allowNull: false,
        comment: "价格"
    },
    goods_price: {
        type: DataTypes.DECIMAL(10,2),
        allowNull: false,
        comment: "数量"
    },
    goods_img: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: "图片地址"
    },
    userId:{
        type: DataTypes.DECIMAL(10,2),
        allowNull: true,
        comment: "那个用户ID"
    }
})
// Goods.sync({force:true})
module.exports = Goods